<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="移动web开发适配方案之Rem移动端为什么要做适配?移动端相对PC端来说大部分浏览器内核都是基于Webkit的，所以大部分都支持CSS3的最新语法。但是由于手机的屏幕尺寸和分辨率都不太一样（尤其是安卓），所以不得不对不同分辨率的手机做适配来达到近似的展示效果。 一般来说，UI只会给我们提供一份设计图，目前比较多的是参考手机淘宝的方案给一份750px宽的设计稿，而我们前端要做的就是在不同分辨率的手机">
<meta name="keywords" content="君须知，未见之处，犹多宝藏">
<meta property="og:type" content="article">
<meta property="og:title" content="移动web适配之rem">
<meta property="og:url" content="http:&#x2F;&#x2F;yoursite.com&#x2F;2019&#x2F;11&#x2F;18&#x2F;%E7%A7%BB%E5%8A%A8web%E9%80%82%E9%85%8D%E4%B9%8Brem&#x2F;index.html">
<meta property="og:site_name" content="White 的个人博客">
<meta property="og:description" content="移动web开发适配方案之Rem移动端为什么要做适配?移动端相对PC端来说大部分浏览器内核都是基于Webkit的，所以大部分都支持CSS3的最新语法。但是由于手机的屏幕尺寸和分辨率都不太一样（尤其是安卓），所以不得不对不同分辨率的手机做适配来达到近似的展示效果。 一般来说，UI只会给我们提供一份设计图，目前比较多的是参考手机淘宝的方案给一份750px宽的设计稿，而我们前端要做的就是在不同分辨率的手机">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-11-18T14:44:01.408Z">
<meta name="twitter:card" content="summary">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2019/11/18/移动web适配之rem/"/>





  <title>移动web适配之rem | White 的个人博客</title>
  








</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>
<a href="https://github.com/whitechiina" target="_blank" rel="noopener" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#f55555; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">White 的个人博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">君须知，未见之处，犹多宝藏</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/11/18/%E7%A7%BB%E5%8A%A8web%E9%80%82%E9%85%8D%E4%B9%8Brem/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="White">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/1.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="White 的个人博客">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">移动web适配之rem</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-11-18T22:09:10+08:00">
                2019-11-18
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Web%E6%A6%82%E8%BF%B0/" itemprop="url" rel="index">
                    <span itemprop="name">Web概述</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1.7k字
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  6分钟
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="移动web开发适配方案之Rem"><a href="#移动web开发适配方案之Rem" class="headerlink" title="移动web开发适配方案之Rem"></a>移动web开发适配方案之Rem</h3><p>移动端为什么要做适配?<br>移动端相对PC端来说大部分浏览器内核都是基于Webkit的，所以大部分都支持CSS3的最新语法。但是由于手机的屏幕尺寸和分辨率都不太一样（尤其是安卓），所以不得不对不同分辨率的手机做适配来达到近似的展示效果。</p>
<p>一般来说，UI只会给我们提供一份设计图，目前比较多的是参考手机淘宝的方案给一份750px宽的设计稿，而我们前端要做的就是在不同分辨率的手机上以同样的效果展示这份设计稿。</p>
<p>在讲适配方案之前，有几个基本的移动端开始相关的知识点得了解一下:</p>
<ol>
<li>rem单位: 说到rem这个单位就不得不提一下在它之前出现的一个类似单位em，em时相对于父级font-size的相对单位，而rem是相对于根节点html的相对单位，也就是说，当html的font-size为12px时，某一个元素的font-size设为1rem也就是等同于12px了。正因为rem单位的这一特性，从而让它可以成为移动端适配的一个关键单位。</li>
<li>vw单位：相对于视窗的宽度，视窗宽度是100vw，与整个单位类似的是wh,就是视窗高度，视窗高度时100vh。更详细的特性可以参考视区相关单位vw, vh..简介以及可实际应用场景</li>
</ol>
<ul>
<li>物理像素: 也可以说是设备无关像素，例如iPhone6的分辨率（750x1334）指的是物理像素</li>
<li>逻辑像素: 是浏览器使用的抽象单位，状态是可变的，例如在PC浏览器调试面板上我们可以看到iPhone6的物理像素为(375x667)</li>
<li>物理像素与逻辑像素的关系就是设备像素缩放比dpr<h3 id="适配思路"><a href="#适配思路" class="headerlink" title="适配思路"></a>适配思路</h3></li>
</ul>
<ol>
<li>使用CSS的@media媒体查询设置在不同屏幕尺寸下现实不同的效果，类似于这样：<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">首先，这样只照顾了固定分辨率的机型，肯定是不够的，而且，如果针对页面上的每一个元素写这么多套适配也不现实，媒体查询还是比较适合<span class="selector-tag">PC</span>端不同分辨率屏幕之间的适配。</span><br><span class="line"></span><br><span class="line">2. 使用<span class="selector-tag">css</span>的单位<span class="selector-tag">rem</span>，类似于这样：</span><br><span class="line"></span><br><span class="line">```<span class="selector-tag">html</span></span><br><span class="line">@<span class="keyword">media</span> only screen and (min-width: <span class="number">375px</span>) &#123;</span><br><span class="line">  <span class="selector-tag">html</span> &#123;</span><br><span class="line">    <span class="attribute">font-size </span>: <span class="number">62.5px</span>;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">@<span class="keyword">media</span> only screen and (min-width: <span class="number">360px</span>) &#123;</span><br><span class="line">  <span class="selector-tag">html</span> &#123;</span><br><span class="line">    <span class="attribute">font-size </span>: <span class="number">60px</span>;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

</li>
</ol>
<p>当然，在实际开发中不可能真的这样去写，既然上面已经提到了rem这一单位的特性，那么我们要做的就是根据不同分辨率的设备动态地改变html的font-size就好，也就是1rem代表的大小。比较常见的有两种方案：</p>
<p>通过js动态获取屏幕的宽度，从而计算出html的font-size，还是拿日常开发常见的750px的设计稿为例：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> htmlWidth = <span class="built_in">document</span>.documentElement.clientWidth || <span class="built_in">document</span>.body.clientWidth;</span><br><span class="line"><span class="keyword">let</span> htmlDOM = <span class="built_in">document</span>.getElementsByTagName(<span class="string">'html'</span>)[<span class="number">0</span>];</span><br><span class="line">htmlDOM.style.fontSize = htmlWidth / <span class="number">7.5</span> + <span class="string">'px'</span>;</span><br><span class="line"></span><br><span class="line"><span class="built_in">window</span>.addEventListener(<span class="string">'resize'</span>, (e) =&gt; &#123;</span><br><span class="line">  <span class="keyword">let</span> htmlWidth = <span class="built_in">document</span>.documentElement.clientWidth || <span class="built_in">document</span>.body.clientWidth;</span><br><span class="line">  htmlDOM.style.fontSize = htmlWidth / <span class="number">7.5</span> + <span class="string">'px'</span>;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
<p>这样一来，在375px宽的设备下，html的font-size就是50px,为什么要除以7.5呢，因为这样设计稿上的数值与需要得到的rem值正好是100倍的关系，这样便于换算，当然，引入了scss等预处理工具之后，取多少都不重要了，反正用一个处理函数统一转化一下就可以了,当html的font-size是37.5的时候：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">@<span class="function"><span class="keyword">function</span> <span class="title">px2rem</span> (<span class="params">$px</span>) </span>&#123;</span><br><span class="line">    $rem: <span class="number">75</span>;</span><br><span class="line">    @<span class="keyword">return</span> ($px / $rem) + rem;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>另一种方案同样是通过vw这一单位实现rem适配<br>上面那种方案说白了就是通过JS动态改变html的font-size的大小，而现在有这么一种单位本身的大小就会随着屏幕的变化而变化，那岂不是省去了JS操作Html字体大小的代码！<br>我最开始有点担心的是兼容性，不过从caniuse上查的的兼容性上来看兼容性还是比较高的，安卓版本大于4.0的浏览器都是兼容的的。尤其对于在微信上使用的H5页面是完全不用担心兼容性问题的<br>具体实现如下：<br>/*<br> 当在Ip6下时，100vw代表375px,而视觉稿一般是750px,为了方便算，当html上的1rem代表50px时，<br> 视觉稿上的像素跟rem就存在了100倍的转化关闭，而此时1vw代表是3.75px，所以html上的font-siez为50/3.75，<br> 约等于13.33333vw,这样即使不用scss也是比较利于换算的<br> */</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">html &#123;background-color: #eee; font-size: 13.33333vw;&#125;</span><br></pre></td></tr></table></figure>
<p>设为上面这样一个数值同样是为了计算方便，当然不是必须的，在这样一个数值下，相对应的元素除以100就可以了，写成scss方法如下</p>
<figure class="highlight scss"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">@function px (<span class="variable">$px</span>) &#123; @return (<span class="variable">$px</span> / 100) + rem; &#125; <span class="selector-class">.demo2</span> &#123;<span class="attribute">width</span>: px(<span class="number">200</span>); <span class="attribute">height</span>: px(<span class="number">200</span>); <span class="attribute">background-color</span>: <span class="number">#ddd</span>;&#125;</span><br></pre></td></tr></table></figure>
<p>我看了一下网易新闻的h5页面目前就是使用的这种方案</p>
<h3 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h3><p>最开始想写这篇文章是因为之前只知道通过JS动态调节html的font-size这么一种适配方案，刚好前段时间接触到了公司的一个移动端项目，我只是单独开发几个页面，但我发现是用的vw单位实现的rem方案，刚开始还觉得蛮新奇的，其实后来查资料仔细一想，跟JS那种方案本质上并没有什么区别，都是以屏幕宽度作为底，动态地调节了html的font-size，也就是1rem的大小。</p>
<p>为了写这篇文章又回看了慕课网上这个视频：移动web开发适配秘籍Rem,真的挺感谢这些大牛无私分享的。就像他所说的，移动web开发适配的方案有许多，然而最好的方案一定要掌握。Rem适配方案是我目前所看到的的使用的最多的，多多了解这种方法背后的原理和熟练掌握这种方法还是挺重要的，再次感谢这些大牛的精彩分享，希望我的总结在提升自己的同时也能帮到别人！</p>
<p>参考文章：<br><a href="https://github.com/CruxF/IMOOC/issues/4" target="_blank" rel="noopener">Hello，移动web基础知识整理</a></p>
<p><a href="https://github.com/CruxF/IMOOC/issues/3" target="_blank" rel="noopener">移动web开发适配秘籍Rem</a><br><a href="https://github.com/sunmaobin/sunmaobin.github.io/issues/28" target="_blank" rel="noopener">移动端H5解惑-页面适配（二）</a><br><a href="https://github.com/amfe/article/issues/17" target="_blank" rel="noopener">使用Flexible实现手淘H5页面的终端适配</a><br><a href="https://www.zhangxinxu.com/wordpress/2012/09/new-viewport-relative-units-vw-vh-vm-vmin/" target="_blank" rel="noopener">视区相关单位vw, vh..简介以及可实际应用场景</a></p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/11/18/Markdown%E7%9A%84%E5%B8%B8%E7%94%A8%E8%AF%AD%E6%B3%95/" rel="next" title="Markdown的常用语法">
                <i class="fa fa-chevron-left"></i> Markdown的常用语法
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/11/19/%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%B0%8F%E7%A8%8B%E5%BA%8FHello%20World/" rel="prev" title="第一个小程序Hello World">
                第一个小程序Hello World <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/images/1.jpg"
                alt="White" />
            
              <p class="site-author-name" itemprop="name">White</p>
              <p class="site-description motion-element" itemprop="description">君须知，未见之处，犹多宝藏</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/%7C%7Carchive">
              
                  <span class="site-state-item-count">10</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/yourname" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#移动web开发适配方案之Rem"><span class="nav-number">1.</span> <span class="nav-text">移动web开发适配方案之Rem</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#适配思路"><span class="nav-number">2.</span> <span class="nav-text">适配思路</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#总结"><span class="nav-number">3.</span> <span class="nav-text">总结</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">White</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-heart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">26.9k</span>
  
</div>



<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">博客全站共26.9k 字</span>
</div>

        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
          <span id="scrollpercent"><span>0</span>%</span>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

  

<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"jsonPath":"/live2dw/assets/hijiki.model.json"},"display":{"position":"right","hOffset":100,"width":150,"height":300},"mobile":{"show":true},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
